/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package clasemath;

/**
 *
 * @author gurrola
 */
public class Mayor_And_Menor {

     public static void main (String [] args){

 // seria lo mismo para long y float

          int i = 7;
          int j = -9;
          double x = 72.3543;
          double y = 0.3498;

// para hallar el menor de dos número
    System.out.println("min(" + i + "," + j + ") es " + Math.min(i,j));
    System.out.println("min(" + x + "," + y + ") es " + Math.min(x,y));


// Para hallar el mayor de dos números
     System.out.println("max(" + i + "," + j + ") es " + Math.max(i,j));
     System.out.println("max(" + x + "," + y + ") es " + Math.max(x,y));

     }

}
